import request from '@/utils/request'

// 查询对公预付单列表
export function listPrepayment(query) {
  return request({
    url: '/sci/prepayment/list',
    method: 'get',
    params: query
  })
}

// 查询对公预付单详细
export function getPrepayment(id) {
  return request({
    url: '/sci/prepayment/' + id,
    method: 'get'
  })
}

// 新增对公预付单
export function addPrepayment(data) {
  return request({
    url: '/sci/prepayment',
    method: 'post',
    data: data
  })
}

// 修改对公预付单
export function updatePrepayment(data) {
  return request({
    url: '/sci/prepayment',
    method: 'put',
    data: data
  })
}

// 删除对公预付单
export function delPrepayment(id) {
  return request({
    url: '/sci/prepayment/' + id,
    method: 'delete'
  })
}
